﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MasterPage : System.Web.UI.MasterPage
{
    public Label status_label_masterpage { set { Label2.Text = value.Text; } }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["username"] == null)
        {
            Response.Redirect("login.aspx");
        }
        username_label.Text = (string)Session["username"];
        
    }
    protected void Logout_btn_Click(object sender, EventArgs e)
    {
        Session.Abandon();
        Response.Redirect("login.aspx");
    }
    protected void help_btn_Click(object sender, ImageClickEventArgs e)
    {

    }
}
